package com.njym.java.security.app.biz;

import com.njym.java.annotation.Cache;
import com.njym.java.security.app.entity.FamilyCounselor;
import com.njym.java.security.app.entity.FamilyCounselorVo;
import com.njym.java.security.app.mapper.FamilyCounselorMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-07 14:34:13
 */
@Service
public class FamilyCounselorBiz extends BaseBiz<FamilyCounselorMapper,FamilyCounselor> {
    /**
     *查询咨询师
     * @author lijie
     * @email 717057076@qq.com
     * @date 2019-11-07 14:34:13
     */

    @Resource
    private   FamilyCounselorMapper familyCounselor;


    @Cache(key="FamilyCounselor")
    public   List<FamilyCounselorVo> selectList() {
        List<FamilyCounselorVo> list =   familyCounselor.selectList();
        return   list ;
    }

    public void like(int id) {
        familyCounselor.like(id);
    }
}